package org.alis.ap.rpc.transport;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * RequestHandler desc:
 *
 * 请求网络处理抽象层
 * @author luochuan
 * @date 2020/10/16 16:24
 */
@FunctionalInterface
public interface RequestHandler {

    /**
     * 请求转换
     * @param receive re
     * @param toResp re
     */
    void onRequest(InputStream receive, OutputStream toResp);
}
